![]() ![]() |
| The following review questions were covered in Labs 02
and 03 and are questions taken from the course website. NOT ALL questions
from the course website were discussed in lab. Please note that the information presented here does not necessarily represent a complete answer to the review question. The information is intended to spark student's memory for those who attended lab OR provide a base (hint) from where to start for those students who did not attend lab. | |||
RECORD KEYS: 14,51,37,18,16,25,36,17,11,27 HASH FUNCTION: hash(key) = key mod 11 INCREMENT FUNCTION: increment(key) = Quotient(Key/11) mod 11 |
|||
![]() |
|||
![]() |
|||
You either have to reconstruct the table or use tombstones. |
|||
Will end up with more, shorter chains if there is no moving of records OR less moving of records. |
|||
Can expect shorter chains, and therefore a smaller average probe count. |
|||
See extendible hashing structure. |
|||
One where each key is loaded to a unique home address. |
|||
A file that is not highly dynamic (ie. - one where there is not alot of change). |
|||
Because the end result represents the best possible placement of keys (might be better than a 2 pass load). You are minimizing the overall chain length as opposed to reducing individual chains. |
|||
![]() |
| © Copyright 2002 |
| Questions? Please Email: gwen@cpsc.ucalgary.ca |
| Last modified December 4, 2002 |